<html>
<head><meta charset="utf-8"><title>How to check llvm version of rustc · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20check.20llvm.20version.20of.20rustc.html">How to check llvm version of rustc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="197836605"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20check%20llvm%20version%20of%20rustc/near/197836605" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20check.20llvm.20version.20of.20rustc.html#197836605">(May 17 2020 at 08:01)</a>:</h4>
<p>Hi,<br>
I want to make more use of linker-plugin-LTO on my system, and for that I need to make sure my llvm versions match between clang and rustc.<br>
what's the easiest way to check what llvm version a specific rustc was built with?</p>
<p>FYI this table is quite out of date: <a href="https://doc.rust-lang.org/rustc/linker-plugin-lto.html">https://doc.rust-lang.org/rustc/linker-plugin-lto.html</a></p>
<p>EDIT: Rereading the post I linked they literally say <code>rustc -vV</code> :)<br>
How bad is it to compile rustc locally against a higher llvm version?</p>



<a name="197846724"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/How%20to%20check%20llvm%20version%20of%20rustc/near/197846724" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/How.20to.20check.20llvm.20version.20of.20rustc.html#197846724">(May 17 2020 at 12:31)</a>:</h4>
<p>We're on LLVM 9 at the moment.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>